#include<stdio.h>
int main ()
{
	int n;
	scanf("%d",&n);
	int money;
	money=50*(n-1)+1000;
	printf("%d\n",money);
	return 0;
}
